package com.softlab.retailwholesalesystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@TableName(value = "t_menu")
@AllArgsConstructor
@NoArgsConstructor
public class MenuEntity implements Serializable {

    @TableId(type= IdType.AUTO)
    private Integer menuId;
    private String url;
    private String path;
    private String component;
    private String name;
    private String icon;
    private Integer keepAlive;
    private Integer Authority;
    private Integer parentId;
    private Integer isDelete;
    @TableField(exist = false)
    private List<MenuEntity> children;

}
